function [] = print2(fileID,input,dim1,dim2)

    for i=1:dim1
        for j=1:dim2
            fprintf(fileID, '%e ',input(i, j));
        end
    end
    fclose(fileID);

end

